package bean;

import java.util.ArrayList;

public class TaskTeam {
    private Task task;
    private ArrayList<Worker> team;
    private ArrayList<Worker> validWorkers;
    private boolean isCompleted;

    @Override
    public String toString() {
        return "TaskTeam{" +
                task  +
                //team + "\n" +
                //isCompleted +
                '}';
    }

    public Task getTask() {
        return task;
    }

    public void setTask(Task task) {
        this.task = task;
    }

    public ArrayList<Worker> getTeam() {
        return team;
    }

    public void setTeam(ArrayList<Worker> team) {
        this.team = team;
    }

    public ArrayList<Worker> getValidWorkers() {
        return validWorkers;
    }

    public void setValidWorkers(ArrayList<Worker> validWorkers) {
        this.validWorkers = validWorkers;
    }

    public boolean isCompleted() {
        return isCompleted;
    }

    public void setCompleted(boolean completed) {
        isCompleted = completed;
    }

    public TaskTeam() {
    }

    public TaskTeam(Task task, ArrayList<Worker> team) {
        this.task = task;
        this.team = team;
    }

    public TaskTeam(Task task, ArrayList<Worker> team, boolean isCompleted) {
        this.task = task;
        this.team = team;
        this.isCompleted = isCompleted;
    }

    public TaskTeam(Task task, ArrayList<Worker> team, ArrayList<Worker> validWorkers, boolean isCompleted) {
        this.task = task;
        this.team = team;
        this.validWorkers = validWorkers;
        this.isCompleted = isCompleted;
    }
}
